package com.cci.kangdao.dao;

import com.cci.kangdao.dao.model.AppFunctionCategory;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.mybatis.spring.annotation.MapperScan;

import java.util.List;

/**
 * @description:
 * @author: Lin JianKun
 * @company: CTY
 * @since: 2024/3/3 21:16
 * @version: V1.0
 **/
@MapperScan
public interface AppFunctionCategoryMapper {
    @Select("select * from AppFunctionCategory_T where  Flag =0 and type= #{type}")
    List<AppFunctionCategory> getList(int type);
    @Select("select top 1  * from AppFunctionCategory_T where  FunctionId = #{functionId} ")
    AppFunctionCategory selectByFunctionId(Long functionId);
}
